package com.itbaizhan.openhis.service;

import com.itbaizhan.openhis.domain.Dept;
import com.itbaizhan.openhis.domain.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itbaizhan.openhis.dto.UserDto;
import com.itbaizhan.openhis.vo.DataGridView;

/**
* @author MR
* @description 针对表【sys_user(用户信息表)】的数据库操作Service
* @createDate 2025-05-16 15:16:39
*/
public interface UserService extends IService<User> {
	/**
	 * 根据手机号查询用户信息
	 * @param phone
	 * @return
	 */
	User queryUserByPhone(String phone);
	//分页查询用户
	DataGridView listUserForPage(UserDto userDto);
	//添加用户
	int addUser(UserDto userDto);
	//修改用户
	int updateUser(UserDto userDto);
	//批量删除用户
	int deleteUserByIds(Long[] userIds);
	//批量重置密码
	void resetPwd(Long[] userIds);
	
	//查询用户信息
	User getUserById(Long userId);
}
